package org.polaris.sys.service.impl;

import org.polaris.sys.domain.Dictionaryitem;
import org.polaris.sys.mapper.DictionaryitemMapper;
import org.polaris.sys.service.IDictionaryitemService;
import org.polaris.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.context.annotation.Primary;
import org.springframework.transaction.annotation.Transactional;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author polaris
 * @since 2023-05-09
 */
@Service
@Primary
public class DictionaryitemServiceImpl extends BaseServiceImpl<Dictionaryitem> implements IDictionaryitemService {

    @Autowired
    private DictionaryitemMapper dictionaryitemMapper;

    @Override
    @Transactional
    public void deleteByParenId(Long id) {
        dictionaryitemMapper.deleteByParenId(id);
    }
}
